﻿@page
@model IndexModel
@{
    ViewData["Title"] = "Home page";
}


<div style="margin-top:30px;">
    <form method="post">
        <div>Name: <input asp-for="Name" /></div>
        <div><button class="btn btn-default" >点击POST</button> </div>
        <div><input type="submit" /></div>
        
    </form>
    <form method="get">
        <div><button class="btn btn-default" >点击GET</button> </div>

    </form>
    <div class="div1">
        @Model.Message;
    </div>
    @if (!string.IsNullOrEmpty(Model.Name))
    {
        <p>Hello @Model.Name!</p>
    }
</div>
